#include<bits/stdc++.h>
using namespace std;
int main(int argc, char**argv) {
  int n=0, cnt=0, sum=0, max, min;
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);
  if(scanf("%d", &n)==1) {
    ++cnt;
    max=min=n;
  }
  while(scanf("%d",&n)==1) {
    ++cnt;
    // max = (max>n? max : n);
    // min = (min<n? min : n);
    if(n<min) min=n;
    if(n>max) max=n;
    sum+=n;
  }
  cout << min << " "<<max<<" "<<(double)sum/(double)cnt<<endl;
  // cout << (double)clock()/CLOCKS_PER_SEC << endl;
  return 0;
}
// Buggy, isn't it?
